package middleware

import (
	"github.com/gin-gonic/gin"
)

// HealthCheck 健康检查响应
func HealthCheck() gin.HandlerFunc {
	return func(c *gin.Context) {
		urlPath := c.Request.URL.Path
		if urlPath == "/health" {
			c.JSON(200, "ok")
			c.Abort()
			return
		}
	}
}
